/*
Copyright (C) 2022-2024 Inspur Corp.

SPDX-License-Identifier: Apache-2.0
*/
package uuid

import (
	uuid "github.com/satori/go.uuid"
	"strings"
)

func Generate() string {
	v, _ := uuid.NewV4()
	return v.String()
}

func GenerateAlpha() string {
	return strings.Replace(Generate(), "-", "", -1)
}
func GenerateAlphaWithPrefix(prefix string) string {
	return prefix + strings.Replace(Generate(), "-", "", -1)
}